using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.SoftwarePlusServices.ReferenceBits.OutlookPlusServices
{

    ///
    /// <summary>
    /// This class defines the objects that the main add-in class uses to keep track of scheduled tasks
    /// </summary>
    public class SchedulerInfo
    {
        /// <summary>
        /// Each Scheduled Task is defined by a Scheduler object and a time
        /// </summary>
        private Scheduler _scheduler;
        private int _schedulerTime;
        private bool _performInitialUpdate;
        private string _name;

        public SchedulerInfo(string name, Scheduler scheduler, int schedulerTime, bool performInitialUpdate)
        {
            _name = name;
            _scheduler = scheduler;
            _schedulerTime = schedulerTime;
            _performInitialUpdate = performInitialUpdate;
        }

        public string Name
        {
            get
            {
                return _name;
            }
        }

        public Scheduler Scheduler
        {
            get
            {
                return (_scheduler);
            }
        }

        public bool PerformInitialUpdate
        {
            get
            {
                return (_performInitialUpdate);
            }
        }

        public int Time
        {
            get
            {
                return (_schedulerTime);
            }

            set
            {
                _schedulerTime = value;
            }
        }
    }
}
